/**
 * fileName: ActivityRecordToperServiceImpl.java
 * fileTime: 2011-6-18上午11:42:43
 */
package com.bf.xpdd.service.impl;

import java.util.List;

import com.bf.xpdd.domain.ActivityRecordToperBean;
import com.bf.xpdd.persistent.iface.DaoActivityRecordToper;
import com.bf.xpdd.service.ActivityRecordToperService;

/**
 * 最低成交纪录服务实现
 * 
 * @author linmu
 * 
 */
public class ActivityRecordToperServiceImpl implements ActivityRecordToperService
{
	/**
	 * 最低成交纪录DAO接口
	 */
	private DaoActivityRecordToper daoActivityRecordToper;

	/**
	 * spring注入dao
	 * 
	 * @param daoActivityRecordToper
	 */
	public void setDaoActivityRecordToper(DaoActivityRecordToper daoActivityRecordToper)
	{
		this.daoActivityRecordToper = daoActivityRecordToper;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.bf.xpdd.service.ActivityRecordToperService#addActivityRecordToper
	 * (com.bf.xpdd.domain.ActivityRecordToperBean)
	 */
	public void addActivityRecordToper(ActivityRecordToperBean recordBean)
	{
		this.daoActivityRecordToper.addActivityRecordToper(recordBean);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.bf.xpdd.service.ActivityRecordToperService#delActRecordToper(long)
	 */
	public void delActRecordToper(long id)
	{
		this.daoActivityRecordToper.delActRecordToper(id);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.bf.xpdd.service.ActivityRecordToperService#delActRecordToperByItemId
	 * (long)
	 */
	public void delActRecordToperByItemId(long itemId)
	{
		this.daoActivityRecordToper.delActRecordToperByItemId(itemId);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.bf.xpdd.service.ActivityRecordToperService#delActRecordToperByNick
	 * (java.lang.String)
	 */
	public void delActRecordToperByNick(String nick)
	{
		this.daoActivityRecordToper.delActRecordToperByNick(nick);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.bf.xpdd.service.ActivityRecordToperService#queryActRecordToperById
	 * (long)
	 */
	public ActivityRecordToperBean queryActRecordToperById(long id)
	{
		return this.daoActivityRecordToper.queryActRecordToperById(id);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.bf.xpdd.service.ActivityRecordToperService#queryActRecordToperByItemId
	 * (long)
	 */
	public List<ActivityRecordToperBean> queryActRecordToperByItemId(long itemId)
	{
		return this.daoActivityRecordToper.queryActRecordToperByItemId(itemId);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.bf.xpdd.service.ActivityRecordToperService#queryActRecordToperByNick
	 * (java.lang.String)
	 */
	public List<ActivityRecordToperBean> queryActRecordToperByNick(String nick)
	{
		return this.daoActivityRecordToper.queryActRecordToperByNick(nick);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.bf.xpdd.service.ActivityRecordToperService#queryLeastPriceByItemId
	 * (long)
	 */
	public double queryLeastPriceByItemId(long itemId)
	{
		return this.daoActivityRecordToper.queryLeastPriceByItemId(itemId);
	}

}
